from langchain_core.runnables import RunnableParallel, RunnablePassthrough

runnable = RunnableParallel(
    origin=RunnablePassthrough(),
    modified=lambda x: x + 1  # 这里的lambda函数是一个简单的加1操作
)

#
print(runnable.invoke(1))
print(runnable.batch([1, 2, 3, 4, 5]))
